<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const str = "js-css-html";
      const arr = str.split("-");
      // const arr = str.split("-c");
      // const arr = str.split(""); // 每一个切割为数组元素
      console.log(arr);
    </script>
  </body>
</html>
